package pl.register.android.database.dao;

import pl.register.android.group.StudentsGroup;
import pl.register.android.student.Student;
import pl.register.android.year.Year;

import java.util.List;

/**
 * @author Mateusz Strzelecki
 * @since 2013-04-26
 */
public interface StudentGroupDao {

    StudentsGroup insertGroup(StudentsGroup studentsGroup, Year year);

    StudentsGroup findGroupsBy(Student student, Year year);

    List<StudentsGroup> findGroupsBy(Year year);

    void addStudentTo(Student student, StudentsGroup group);

    void deleteStudentFrom(Student student, StudentsGroup group);

}
